<%@ page import="java.util.ArrayList" %>
<%@ page import="cn.itcast.Student" %><%--
  Created by IntelliJ IDEA.
  User: 22657
  Date: 2020/7/22
  Time: 16:15
  To change this template use File | Settings | File Templates.
--%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>查看学生</title>
</head>
<body>
<table width=600px border=1px>
    <tr>
        <th>学生姓名</th>
        <th>学生年龄</th>
        <th>学生成绩</th>
    </tr>
    <% ArrayList<Student> arr =(ArrayList<Student>) session.getAttribute("arr");%>
    <c:forEach items="${arr}"  var="stu" >
        <tr align="center">
            <td>${stu.username}</td>
            <td>${stu.age}</td>
            <td>${stu.score}</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
